package classroom;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:周次煜
 * Date: 2024-03-22
 * Time：10:35
 */
public class Test2 {


    // 输入三个输，求其最大值
    public static void main(String[] args) {
        int []array=new int[3];
        Scanner s=new Scanner(System.in);
        for (int i = 0; i < array.length; i++) {
            array[i]=s.nextInt();
        }
        int max=array[0];
        for (int i = 1; i < array.length; i++) {
            if (max<array[i]) {
                max=array[i];
            }
        }

        System.out.println(max);
    }

}


class Test {

    // 冒泡排序
    public static void func(int []array) {
        for (int i = 0; i < array.length-1; i++) {
            for (int j = 0; j < array.length-1-i; j++) {
                if (array[j]>array[j+1]) {
                    int tmp=array[j];
                    array[j]=array[j+1];
                    array[j+1]=tmp;
                }
            }
        }
    }


    public static void main(String[] args) {
        int []array=new int[5];
        Scanner s=new Scanner(System.in);
        for (int i = 0; i < array.length; i++) {
            array[i]=s.nextInt();
        }

        func(array);
        for(int x:array) {
            System.out.print(x+" ");
        }
    }
}

class  Test3 {
    public static void main(String[] args) {
        int a[][]=new int[4][4];
        Scanner s=new Scanner(System.in);
        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < a[i].length; j++) {
                a[i][j]=s.nextInt();
            }
        }

        int sum=0;
        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < a[i].length; j++) {
                if(i==j) {
                  sum += a[i][j];
                }
            }
        }

        System.out.println(sum);
    }
}


class Test4 {
    public static void main(String[] args) {
        int a[][]={{1,2,3,4},{2,3,4,5},{3,4,5,6}};
        int b[][]=new int[4][5];

        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < a[i].length; j++) {
                b[j][i]=a[i][j];
            }
        }

        for (int i = 0; i < 4; i++) {
            for (int j = 0; j < 3; j++) {
                System.out.print(b[i][j]+" ");
            }
            System.out.println();
        }
        
    }

}
